# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=xpad
pkgver=5.4.0
pkgrel=1
pkgdesc="Stickies-like notes application"
url="https://launchpad.net/xpad"
arch="all"
license="GPL-3.0-only"
makedepends="automake autoconf libtool intltool gtk+3.0-dev
	gtksourceview-dev libsm-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://launchpad.net/xpad/trunk/$pkgver/+download/xpad-$pkgver.tar.bz2"

prepare() {
	default_prepare
	autoreconf -vfi
	cp -r data/xpad.desktop.in "$builddir"
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a20b1d16d0d9e4cb0b88c969165eb9514b69a0eaef91eca8a3fb4da08ea8a2db32891de3c8a2a4a97db21bf78f515c7b6f798c59ba155f480f866334fca7986f  xpad-5.4.0.tar.bz2"
